""" Models/Ad Model """
from masoniteorm.relationships import has_many
from masoniteorm.models import Model


class Ad(Model):
    """Models/Ad Model"""
    __table__ = 'ads'

    @has_many('id', 'ad_id')
    def ad_items(self):
        from app.models.AdItems import AdItems
        return AdItems
